<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/manage/commons/taglibs.jsp"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style>
	.form-item-input {
		width: 200px;
		display: inline-block;
		margin-right: 20px !important;
	}
</style>
<link rel="stylesheet" type="text/css" href="/resources/ace/css/cacheCloud-self.css"/>
<div class="page-container">
	<div class="page-content">
		<div class="row">
			<div class="col-md-12">
				<div class="page-header cache-title">
					<span class="cache-title-color"></span>
					<h4>命令日志列表（命令执行中的日志记录）</h4>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-md-12">
				<div class="portlet-body">
					<div class="table-toolbar">

						<div class="btn-group" style="float:right">
							<form action="/manage/command/list" method="post" class="form-horizontal form-bordered form-row-stripped">
								<label class="control-label">
									账户名:
								</label>
								&nbsp;<input class="form-item-input form-control" type="text" name="username" id="username" value="${log.username}" placeholder="账户名"/>
								&nbsp;
								<label class="control-label">
									应用id:
								</label>
								&nbsp;<input class="form-item-input form-control" type="text" name="appId" id="appId" value="${log.appId}" placeholder="应用id"/>
								&nbsp;
								<label class="control-label">
									ip:
								</label>
								&nbsp;<input class="form-item-input form-control" type="text" name="ip" id="ip" value="${log.ip}" placeholder="ip地址"/>
								&nbsp;
								<label class="control-label">
									port:
								</label>
								&nbsp;<input class="form-item-input form-control" type="text" name="port" id="port" value="${log.port}" placeholder="端口号"/>
								&nbsp;
								<label class="control-label">
									命令内容:
								</label>
								&nbsp;<input class="form-item-input form-control" type="text" name="commandInfo" id="commandInfo" value="${log.commandInfo}" placeholder="命令内容 模糊查询"/>
								&nbsp;<button type="submit" class="btn btn-default">查询</button>
							</form>
						</div>
						<em style="display: block; clear: both"></em>
					</div>
					<table class="table table-striped cache-table table-hover" id="tableDataList">
						<thead>
							<tr>
								<th>id</th>
								<th>账户名</th>
								<th>应用id</th>
								<th>命令内容</th>
								<th>ip</th>
								<th>port</th>
								<th>操作时间</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${commandLogs}" var="log">
								<tr class="odd gradeX">
									<td>${log.id}</td>
									<td>${log.username}</td>
									<td>${log.appId}</td>
									<td>${log.commandInfo}</td>
									<td>${log.ip}</td>
									<td>${log.port}</td>
									<td><fmt:formatDate value="${log.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>

								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
